package com.demo.account.controller;


import com.alibaba.nacos.api.config.annotation.NacosValue;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xxx
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/account")
@RefreshScope
@Api(value = "AccountController",tags="会员控制层")
public class AccountController {
    @Value("${name}")
    private String name;

    @RequestMapping(value = "test",method = RequestMethod.GET)
    @ApiOperation(value = "test",notes = "test方法")
    public String test1(){
        return "result: "+name;
    }
}
